<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<%
	String path = request.getContextPath();
	
 %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
	<head>
		<script type="text/javascript" language="javascript" src="<%=path%>/js/jquery-1.3.1.min.js"></script>
		<script type="text/javascript" language="javascript" src="<%=path%>/js/jquery.jmodal.js"></script>
		<link href="<%=path%>/css/main.css" type="text/css" rel="stylesheet"/>
		<link href="<%=path%>/css/jquery.jmodal.css" type="text/css" rel="stylesheet"/>
		<script language="JavaScript" src="self.js" type="text/JavaScript"charset="utf-8"></script>
		<title>修改个人密码</title>
	</head>

	<body>
        
		<f:view>
			<h:form id="selfPwd" onsubmit="return submitSelfPwd();">
			<div class="cont2">
			  <div class="table2">
			    <div class="title1Bg">
			     <div class="title1 f14"><strong>个人密码修改</strong><span class="f12 fright">
			     <h:commandButton action="#{peopleBean.updSelfPwd}"styleClass="but_submit" onclick="return submitSelfPwd();" value="提交"></h:commandButton>
				 <h:commandLink value="返回"  styleClass="buts but6" action="#{peopleBean.backToSearch}" />       
				 </span></div>
				</div>
			    <div class="cont3Bg">
			      <div class="cont3Bg2">
			        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="cont4">
			        <tr><td colspan="2" class="td3" height="1"></td></tr>
			          <tr>
			            <td class="f14">用户ID:</td>
			            <td> <h:inputText id="userId"  value="#{peopleBean.userId}"  styleClass="input2" disabled="true" required="false"> 
			             </h:inputText>  <span class="red"> <h:message for="userId"></h:message>* </span></td>
			          </tr>
			        <tr><td colspan="2" class="td2" height="1"></td></tr>
			          <tr>
			            <td class="f14">用户姓名:</td>
			            <td> <h:inputText id="userName"  value="#{peopleBean.userName}"  styleClass="input2" disabled="true" required="false"> 
			             </h:inputText>  <span class="red"> <h:message for="userName"></h:message>* </span></td>
			          </tr>
			          <tr><td colspan="2" class="td3" height="1"></td></tr>
			          <tr>
			            <td class="f14">原密码:</td>
			            <td> <h:inputSecret id="oldpassword" size="78" value="#{peopleBean.oldpassword}"
								  validator="#{peopleBean.validateUserPwd}"  maxlength="20">
							 </h:inputSecret>
							<span class="red">* <h:message for="oldpassword"></h:message></span>&nbsp;
			            </td>
			          </tr>
			          <tr><td colspan="2" class="td3" height="1"></td></tr>
			          <tr>
			            <td class="f14">新密码:</td>
			            <td> <h:inputSecret id="password" size="78" value="#{peopleBean.password}" ></h:inputSecret>
							<span class="red"> <h:message for="password"></h:message>* </span>&nbsp;
			            </td>
			          </tr>
			          <tr><td colspan="2" class="td3" height="1"></td></tr>
			          <tr>
			            <td class="f14">确认密码:</td>
			            <td> <h:inputSecret id="ckpassword" size="78"  ></h:inputSecret>
							<span class="red"> <h:message for="ckpassword"></h:message>* </span>&nbsp;
			            </td>
			          </tr>
			          
			        </table>
			      </div>
			    </div>
			  </div>
			</div>
	</h:form>
		</f:view>
	</body>
</html>
<script type="text/javascript" language="javascript">
			
		</script>
